package Interfaces_EquipAB_Factory_pro;

import Interfaces_EquipAB_Factory.Factory;

public class Test {

//    1.实例化
//    2.传参
//    3.调用方法

    public static void main(String[] args) {

        EquipmentB equipmentB = new EquipmentB();
        EquipmentC equipmentC = new EquipmentC();
        Factory_pro factory_pro = new Factory_pro();

//        factory_pro.setEquipment(equipmentB);
        factory_pro.setEquipment(equipmentC);

        factory_pro.work();
    }

}
